const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    host: "localhost",
    port: 3000, // 端口号
    https: false, // https:{type:Boolean}
    open: true, //配置自动启动浏览器
    // 配置多个代理
    proxy: {
      "/hostApi": {
        target: "http://88vp035077.goho.co",// 要访问的接口域名
        ws: true,// 是否启用websockets
        changeOrigin: true, //开启代理
        pathRewrite: {
          '^/hostApi': ''
        }
      }
    }
  }
})
